engineer of (someone's) own misfortune

Translations
l'artisan de son propre malheur
Definitions
A person who is the engineer of their own misfortune is someone who is responsible for the problems or difficulties they are experiencing, usually because of their own actions, decisions, or mistakes.